package cn.golxen.blog.mapper;

import cn.golxen.blog.commons.vo.AddLabelSetVo;
import cn.golxen.blog.commons.vo.GetLabelAndEssayCountVo;
import cn.golxen.blog.entity.Essay;
import cn.golxen.blog.entity.Label;

import java.util.List;
import java.util.Set;

public interface LabelMapper {
    Integer addLabel(Label label);
    Integer deleteLabel(String label);
    Set<GetLabelAndEssayCountVo> getLabelByCategory(String category);
    Set<GetLabelAndEssayCountVo> getLabelAll();
    Integer getCount();
    Integer addLabelSet(AddLabelSetVo addLabelSetVo);
}
